From 44092fc2af3059276f25b20baecd18b930db6e2b Mon Sep 17 00:00:00 2001 From: oliskoli Date: Tue, 20 Feb 2007 19:40:52 +0000 Subject: [PATCH] cet: Make a simple copy when source and target are in UTF-8. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2674 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/cet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gpsbabel/cet.c b/gpsbabel/cet.c index abc8b64b6..99a99a4f2 100644 --- a/gpsbabel/cet.c +++ b/gpsbabel/cet.c @@ -305,6 +305,7 @@ cet_str_any_to_utf8(const char *src, const cet_cs_vec_t *vec) cin = (char *)src; if (cin == NULL) return NULL; + if (vec->ucs4_count == 0) return xstrdup(src); /* UTF-8 -> UTF-8 */ len = 0; while (*cin != '\0') /* determine length of resulting UTF-8 string */ -- 2.30.2